Hi all,
When creating an AWS Event Bridge extension through the API like below, we’re seeing the extension being configured in the PagerDuty console but not in AWS. Performing the steps manually in the PagerDuty console is working as expected.
curl --request POST \
--url https://api.pagerduty.com/extensions \
--header 'Accept: application/vnd.pagerduty+json;version=2' \
--header 'Authorization: Token token=redacted' \
--header 'Content-Type: application/json' \
--data '{
"extension": {
"name": "test",
"config": {
"aws_account_id": "redacted",
"aws_region": "us-east-1",
"aws_partner_event_source_name": "forumtest"
},
"extension_schema": {
"id": "PF8FPF1",
"type": "extension_schema_reference"
},
"extension_objects": [
{
"id": "redacted",
"type": "service_reference"
}
]
}
}'
That returns a seemingly correct response:
{
"extension": {
"endpoint_url": null,
"name": "test",
"config": {
"aws_account_id": "redacted but correct",
"aws_region": "us-east-1",
"aws_partner_event_source_name": "forumtest"
},
"extension_schema": {
"id": "PF8FPF1",
"type": "extension_schema_reference",
"summary": "Amazon EventBridge",
"self": "https://api.pagerduty.com/extension_schemas/PF8FPF1",
"html_url": null
},
"extension_objects": [
{
redacted but correct
}
],
"id": "PB1I3T1",
"type": "webhook",
"summary": "test",
"self": "https://api.pagerduty.com/webhooks/PB1I3T1",
"html_url": null
}
}
And creates the extension in the PagerDuty UI:
But the AWS Partner event sources page doesn’t list the new event source (redacted event sources are from manual configuration in the UI)
I initially stumbled on this using the Terraform PagerDuty provider (being able to use that end to end is our end goal, currently we have documented the manual process), but I was able to reproduce it with the API directly so it does not appear to be a Terraform provider issue.
Any guidance?